package com.hotel.service.Impl;

import com.hotel.entity.RoomType;
import com.hotel.mapper.RoomTypeMapper;
import com.hotel.service.RoomTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author 夏智力
 * @FileName RoomTypeServiceImpl
 * @date 2021/6/22 14:35
 * @Software: IntelliJ IDEA
 */
@Service
public class RoomTypeServiceImpl implements RoomTypeService {

    @Autowired
    private RoomTypeMapper roomTypeMapper;

    @Override
    public List<RoomType> selectRoomType() {
        return roomTypeMapper.selectRoomType();
    }

    @Override
    public int addRoomType(RoomType roomType) {
        return roomTypeMapper.addRoomType(roomType);
    }

    @Override
    public int updateRoomType(RoomType roomType) {
        return roomTypeMapper.updateRoomType(roomType);
    }

    @Override
    public int deleteRoomType(int id) {
        return roomTypeMapper.deleteRoomType(id);
    }
}
